[INFO] cloning repository https://github.com/khairulharu/rust-error-etc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/khairulharu/rust-error-etc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d3c61294d703ed27281fd55317746fa02d1088e4
[INFO] fixing khairulharu/rust-error-etc against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkhairulharu%2Frust-error-etc" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/khairulharu/rust-error-etc
[INFO] finished tweaking git repo https://github.com/khairulharu/rust-error-etc
[INFO] tweaked toml for git repo https://github.com/khairulharu/rust-error-etc written to /workspace/builds/worker-0-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/khairulharu/rust-error-etc on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/khairulharu/rust-error-etc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1
[INFO] running `Command { std: "docker" "start" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]     Checking rust-error-etc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/main.rs from 2021 edition to 2024
[INFO] [stderr]        Fixed src/main.rs (4 fixes)
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:449:24
[INFO] [stdout]     |
[INFO] [stdout] 449 |         println!("{}", COUNTER);
[INFO] [stdout]     |                        ^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.49s
[INFO] [stderr] crater-edition-check: rust-error-etc v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking rust-error-etc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]    --> src/main.rs:250:8
[INFO] [stdout]     |
[INFO] [stdout] 250 |     Of(String, Box<ProductCategory>),
[INFO] [stdout]     |     -- ^^^^^^  ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ProductCategory` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]     |
[INFO] [stdout] 250 -     Of(String, Box<ProductCategory>),
[INFO] [stdout] 250 +     Of((), ()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]    --> src/main.rs:350:8
[INFO] [stdout]     |
[INFO] [stdout] 350 |     Of(String, Rc<Brand>),
[INFO] [stdout]     |     -- ^^^^^^  ^^^^^^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     fields in this variant
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Brand` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]     |
[INFO] [stdout] 350 -     Of(String, Rc<Brand>),
[INFO] [stdout] 350 +     Of((), ()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `active` is never read
[INFO] [stdout]    --> src/main.rs:408:5
[INFO] [stdout]     |
[INFO] [stdout] 406 | struct Seller {
[INFO] [stdout]     |        ------ field in this struct
[INFO] [stdout] 407 |     name: RefCell<String>,
[INFO] [stdout] 408 |     active: RefCell<bool>,
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Seller` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]    --> src/main.rs:449:24
[INFO] [stdout]     |
[INFO] [stdout] 449 |         println!("{}", COUNTER);
[INFO] [stdout]     |                        ^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]     = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cell::RefMut`
[INFO] [stdout]    --> src/main.rs:403:5
[INFO] [stdout]     |
[INFO] [stdout] 403 | use std::cell::RefMut;
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `hi`
[INFO] [stdout]    --> src/main.rs:453:14
[INFO] [stdout]     |
[INFO] [stdout] 453 | macro_rules! hi {
[INFO] [stdout]     |              ^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_macros)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused macro definition: `iterate`
[INFO] [stdout]    --> src/main.rs:471:14
[INFO] [stdout]     |
[INFO] [stdout] 471 | macro_rules! iterate {
[INFO] [stdout]     |              ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-error-etc` (bin "rust-error-etc" test) due to 1 previous error; 3 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: struct `UserRepository` is never constructed
[INFO] [stdout]   --> src/main.rs:22:8
[INFO] [stdout]    |
[INFO] [stdout] 22 | struct UserRepository {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `new_user_repository` is never used
[INFO] [stdout]   --> src/main.rs:26:4
[INFO] [stdout]    |
[INFO] [stdout] 26 | fn new_user_repository(user_repository: Option<UserRepository>) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cache_connection` is never used
[INFO] [stdout]   --> src/main.rs:46:4
[INFO] [stdout]    |
[INFO] [stdout] 46 | fn cache_connection(host: Option<String>) -> Result<String, String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `email_connection` is never used
[INFO] [stdout]   --> src/main.rs:53:4
[INFO] [stdout]    |
[INFO] [stdout] 53 | fn email_connection(host: Option<String>) -> Result<String, String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `connect_application` is never used
[INFO] [stdout]   --> src/main.rs:70:4
[INFO] [stdout]    |
[INFO] [stdout] 70 | fn connect_application(host: Option<String>) -> Result<String, String> {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `longest` is never used
[INFO] [stdout]    --> src/main.rs:100:4
[INFO] [stdout]     |
[INFO] [stdout] 100 | fn longest<'a>(value1: &'a str, value2: &'a str) -> &'a str {
[INFO] [stdout]     |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Student` is never constructed
[INFO] [stdout]    --> src/main.rs:130:8
[INFO] [stdout]     |
[INFO] [stdout] 130 | struct Student<'a, 'b> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `longest_last_name` is never used
[INFO] [stdout]    --> src/main.rs:136:8
[INFO] [stdout]     |
[INFO] [stdout] 135 | impl<'a, 'b> Student<'a, 'b> {
[INFO] [stdout]     | ---------------------------- method in this implementation
[INFO] [stdout] 136 |     fn longest_last_name(&self, student: &Student<'a, 'b>) -> &'b str {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `longest_student_name` is never used
[INFO] [stdout]    --> src/main.rs:145:4
[INFO] [stdout]     |
[INFO] [stdout] 145 | fn longest_student_name<'a, 'b>(student1: &Student<'a, 'b>, student2: &Student<'a, 'b>) -> &'a str {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Teacher` is never constructed
[INFO] [stdout]    --> src/main.rs:190:8
[INFO] [stdout]     |
[INFO] [stdout] 190 | struct Teacher<'a, ID> where ID : Ord {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compare_name` is never used
[INFO] [stdout]    --> src/main.rs:202:4
[INFO] [stdout]     |
[INFO] [stdout] 202 | fn compare_name<'a>(name1: &'a String, name2: &'a String) -> &'a String {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Hero` is never constructed
[INFO] [stdout]    --> src/main.rs:222:8
[INFO] [stdout]     |
[INFO] [stdout] 222 | struct Hero {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `ProductCategory` is never used
[INFO] [stdout]    --> src/main.rs:249:6
[INFO] [stdout]     |
[INFO] [stdout] 249 | enum ProductCategory {
[INFO] [stdout]     |      ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_category` is never used
[INFO] [stdout]    --> src/main.rs:254:4
[INFO] [stdout]     |
[INFO] [stdout] 254 | fn print_category(category: &ProductCategory) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MyValue` is never constructed
[INFO] [stdout]    --> src/main.rs:290:8
[INFO] [stdout]     |
[INFO] [stdout] 290 | struct MyValue<T> {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `say_hello_reference` is never used
[INFO] [stdout]    --> src/main.rs:312:4
[INFO] [stdout]     |
[INFO] [stdout] 312 | fn say_hello_reference(name: &String) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Book` is never constructed
[INFO] [stdout]    --> src/main.rs:327:8
[INFO] [stdout]     |
[INFO] [stdout] 327 | struct Book {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Brand` is never used
[INFO] [stdout]    --> src/main.rs:349:6
[INFO] [stdout]     |
[INFO] [stdout] 349 | enum Brand {
[INFO] [stdout]     |      ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `change_address` is never used
[INFO] [stdout]    --> src/main.rs:374:4
[INFO] [stdout]     |
[INFO] [stdout] 374 | fn change_address(address: &mut String) {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Seller` is never constructed
[INFO] [stdout]    --> src/main.rs:406:8
[INFO] [stdout]     |
[INFO] [stdout] 406 | struct Seller {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `VERSION` is never used
[INFO] [stdout]    --> src/main.rs:429:8
[INFO] [stdout]     |
[INFO] [stdout] 429 | static VERSION: &str = "80.80.88";
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `COUNTER` is never used
[INFO] [stdout]    --> src/main.rs:438:12
[INFO] [stdout]     |
[INFO] [stdout] 438 | static mut COUNTER: i32 = 0;
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `increment` is never used
[INFO] [stdout]    --> src/main.rs:440:11
[INFO] [stdout]     |
[INFO] [stdout] 440 | unsafe fn increment() { unsafe {
[INFO] [stdout]     |           ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1", kill_on_drop: false }`
[INFO] [stdout] bb09998c93feeabca7decf66884d5c607e4c809b41291ad20b94b09a6d59c1b1
